var ajaxHelper = require("../../utils/ajaxhelp");
const serviceUrl = getApp().globalData.serviceUrl;
let token = wx.getStorageSync('token');

const GetScreenTeamByOwnerId = (ownerId) => {
	token = wx.getStorageSync('token');
	return ajaxHelper.promiseRequst(serviceUrl + "/api/ScreenTeam/GetScreenTeamByOwnerId", {
		'Authorization': 'Bearer ' + token
	}, "GET", {
		ownerId: ownerId
	})
}

const GetFirstScreenTeam = (ownerId) => {
	token = wx.getStorageSync('token');
	return ajaxHelper.promiseRequst(serviceUrl + "/api/ScreenTeam/GetFirstScreenTeam", {
		'Authorization': 'Bearer ' + token
	}, "GET", {
		ownerId: ownerId
	})
}

module.exports = {
	GetScreenTeamByOwnerId,
	GetFirstScreenTeam,
}
